﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace YuFeng.Web.Extentions
{

    /// <summary>
    /// 菜单
    /// </summary>
    public class Menu
    {
        public Menu()
        {
        }
        /// <summary>
        /// 对象实例化
        /// </summary>
        /// <param name="type"></param>
        /// <param name="name"></param>
        /// <param name="value"></param>
        public Menu(YuFeng.Models.AppEnum.MenuType type, string name, string value)
        {
            this.type = type;
            this.name = name;
            this.value = value;
        }

        /// <summary>
        /// 菜单的响应动作类型，目前有click、view两种类型
        /// </summary>
        public YuFeng.Models.AppEnum.MenuType type { set; get; }

        /// <summary>
        /// 菜单标题，不超过16个字节，子菜单不超过40个字节
        /// </summary>
        public string name { set; get; }

        /// <summary>
        /// 菜单数据
        /// </summary>
        public string value { set; get; }

        /// <summary>
        /// 二级菜单数组，个数应为1~5个
        /// </summary>
        public List<Menu> sub_button { set; get; }

    }


}
